package com.example.designpattern.creational.factory.abstract_factory;

import com.example.designpattern.creational.factory.common.product.fruit.Fruit;
import com.example.designpattern.creational.factory.common.product.fruit.Pear;
import com.example.designpattern.creational.factory.common.product.mask.Mask;
import com.example.designpattern.creational.factory.common.product.mask.N95Mask;

public class PearFactory implements IFactory {

    @Override
    public Fruit createFruit() {
        return new Pear();
    }

    @Override
    public Mask createMask() {
        return new N95Mask();
    }
}